package com.yellowframework.cloud.api.system;

import com.yellowframework.cloud.common.model.response.ObjectResponseResult;
import com.yellowframework.cloud.common.model.response.QueryResponseResult;
import com.yellowframework.cloud.common.model.response.ResponseResult;
import com.yellowframework.cloud.domain.system.SysRole;
import com.yellowframework.cloud.domain.system.ext.SysRoleExt;
import com.yellowframework.cloud.domain.system.request.QuerySysRoleRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(tags = "角色管理")
public interface SysRoleControllerApi {

    @ApiOperation("分页查询列表数据")
    QueryResponseResult<SysRole> pageList(Integer page, Integer size, QuerySysRoleRequest request);

    @ApiOperation("角色列表")
    QueryResponseResult<SysRole> select();

    @ApiOperation("角色信息")
    ObjectResponseResult<SysRoleExt> info(Integer roleId);

    @ApiOperation("保存角色")
    ResponseResult save(SysRoleExt role);

    @ApiOperation("修改角色")
    ResponseResult update(Integer id, SysRoleExt role);

    @ApiOperation("删除角色")
    ResponseResult delete(Integer[] roleIds);
}
